/*
    * Author:   Sander
    * Date:     12-apr-2011
    * Name:     Camera
    * Version:  1.0
    *
    * This code is property of Sander blahblahblah copyright blahblah.
*/


package javaraytracer;

//PENDING:add function/property description
public class Camera
{
	public Vec3 origin;
	public Vec3 rotation;
	public float nearPlane;
	public float farPlane;
	public float fov;

	public Camera()
	{
		origin		= new Vec3(0, 0, 0);
		rotation	= Vec3.EMPTY;
		nearPlane	= 1;
		farPlane	= 1000;
		fov			= (float)Math.PI / 3.0f;
	}
	
	public void target(Vec3 target)
	{
		rotation = Utils.createLookAt(origin, target);
	}

}
